Skip to content

BUG: Inherit DEFAULT_PARAMS down the geom and stat class hierarchy - #1073

Merged
has2k1 merged 1 commit into
mainfrom
refactor-default-params
Jun 11, 2026
Merged

BUG: Inherit DEFAULT_PARAMS down the geom and stat class hierarchy#1073
has2k1 merged 1 commit into
mainfrom
refactor-default-params

Conversation

@has2k1

@has2k1 has2k1 commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Subclasses now declare only the parameters that differ from their parent, and the effective merged set is exposed as default_params. This fixes geoms rejecting parameters that their parent geom supports: geom_step now accepts lineend, linejoin and arrow, geom_quantile accepts arrow, and geom_histogram accepts just and width. geom_step also renders its corners with the documented round joinstyle, hence the updated baseline images.

Subclasses now declare only the parameters that differ from their
parent, and the effective merged set is exposed as `default_params`.
This fixes geoms rejecting parameters that their parent geom
supports: geom_step now accepts lineend, linejoin and arrow,
geom_quantile accepts arrow, and geom_histogram accepts just and
width. geom_step also renders its corners with the documented
round joinstyle, hence the updated baseline images.
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.08%. Comparing base (e846b3a) to head (4d7db09).

Files with missing lines Patch % Lines
plotnine/_utils/registry.py 77.77% 1 Missing and 1 partial ⚠️
plotnine/layer.py 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1073      +/-   ##
==========================================
- Coverage   87.10%   87.08%   -0.03%     
==========================================
  Files         208      208              
  Lines       14321    14327       +6     
  Branches     1788     1790       +2     
==========================================
+ Hits        12474    12476       +2     
- Misses       1283     1286       +3     
- Partials      564      565       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@has2k1
has2k1 merged commit ea32e35 into main Jun 11, 2026
14 checks passed
@has2k1
has2k1 deleted the refactor-default-params branch June 11, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant